package cn.edu.scau.sec.rw.model.pro_manage.threadExe;

import cn.edu.scau.sec.rw.model.pro_manage.simulation.Clock;

/**
 *系统时间递增线程：时间间隔设置为2s一跳
 */
public class SysTimeThread extends Thread {

    @Override
    public void run() {
        try {
            while (true) {
                System.out.println("系统时间:" + Clock.getSystemClock());
                Thread.sleep(1000 * 2);
                Clock.setSystemClock();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
